#ifndef OUTPUT_H
#define OUTPUT_H

#include "scene.h"
#include "object.h"
#include "src/octree.h"
#include <QFile>
#include <QTextStream>

class Output{
    public:
        Output();
        ~Output();

        void parseObjects(QFile *, Scene *);
        void parseObjects(Scene *);
        void parseOctrees(QFile *, Scene *);

        bool isFileNull();
        void setFile(QFile *);

    private:
        QFile *file;//soemente o arquivo dos objetos
        void writeObject(Object *, int = -1);
        void writeNode(OctreeNode *, QFile *);
};

#endif

